<div class="box-body table-responsive no-padding">
    <table class="table">
        <thead>
        <tr>
            <th></th>
            <th>类型</th>
            <th>标签</th>
        </tr>
        </thead>
        <tbody>
        @foreach($paginator as $row)
            <tr>
                <td><input type="checkbox" class="grid-row-checkbox" data-id="{{ $row->id }}" /></td>
                <td><span style="font-size: 85%;padding: .2em 0 .3em;">{{ \App\Models\Quality\QDictTag::$_type[$row->type] }}</span></td>
                <td><span style="font-size: 85%;padding: .2em 0 .3em;">{{ $row->tag }}</span></td>
            </tr>
        @endforeach
        </tbody>
    </table>
</div>
<script language="JavaScript" type="text/javascript">
    $(function () {
        $('.grid-row-checkbox').iCheck({checkboxClass:'icheckbox_minimal-blue'}).on('ifChanged', function () {
            if (this.checked) {
                $(this).closest('tr').css('background-color', '#ffffd5');
            } else {
                $(this).closest('tr').css('background-color', '');
            }
        });
    });
</script>
